home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / lcppb.zip / LCPP04.ZIP / ALIAS.CPP next >
Encoding:
C/C++ Source or Header  |  1991-07-03  |  482 b   |  24 lines

  1. // alias.cpp -- Demonstrate alias pointers
  2.  
  3. //#include <stream.hpp>
  4. #include <iostream.h>
  5.  
  6. char c;           // A character variable
  7.  
  8. main()
  9. {
  10.   char *pc;      // A pointer to a character variable
  11.  
  12.   pc = &c;
  13.   for (c = 'A'; c <= 'Z'; c++)
  14.     cout << *pc;
  15. }
  16.  
  17.  
  18. // Copyright (c) 1990 by Tom Swan. All rights reserved
  19. // Revision 1.00    Date: 08/27/1990   Time: 09:06 am
  20.  
  21. // Revision 1.01    Date: 07/03/1991   Time: 04:00 pm
  22. // Converted for Borland C++ 2.0
  23.  
  24.